Skip to main content
GET
Open a WebSocket on a `when.ws` trigger

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workspaceId
string
required
automationPath
string
required

The path declared in when.ws.path, with its parameters (e.g. v1/agents/agent_x). Can contain slashes.

Query Parameters

org
string

Active organization of the connection: its governance applies, and it pays

Maximum string length: 128
language
string

voice module: ISO-639-1 language of the user speech

Maximum string length: 16
context
string

voice module: conversation to resume (contextId), a new one otherwise

Maximum string length: 128
rate
string

voice module: speech rate of the answers, a multiplier of the voice's own (0.5 to 2)

Maximum string length: 8

Response

Switching protocols (also for a connection turned away with 1013, see above)